package com.xposed.aliproxy.xposed;

import android.app.Activity;
import android.content.Intent;
import android.widget.Button;
import de.robv.android.xposed.XC_MethodHook;
import de.robv.android.xposed.XC_MethodHook.MethodHookParam;
import de.robv.android.xposed.XposedHelpers;

public class AliHookMethodd extends XC_MethodHook {

    @Override
    protected void afterHookedMethod(MethodHookParam methodHookParam) throws Throwable {
        Object obj = XposedHelpers.findField(methodHookParam.thisObject.getClass(), "b").get(methodHookParam.thisObject);
        Object obj2 = XposedHelpers.findField(methodHookParam.thisObject.getClass(), "c").get(methodHookParam.thisObject);
        Intent intent = ((Activity) methodHookParam.thisObject).getIntent();
        String stringExtra = intent.getStringExtra("mark");
        String stringExtra2 = intent.getStringExtra("money");
        XposedHelpers.callMethod(obj, "setText", stringExtra2);
        XposedHelpers.callMethod(obj2, "setText", stringExtra);
        ((Button) XposedHelpers.findField(methodHookParam.thisObject.getClass(), "e").get(methodHookParam.thisObject)).performClick();
    }
}
